import tkinter as tk
from grade_manager.controllers.grade_controller import GradeController


def main():
    root = tk.Tk()
    root.title("成绩管理系统")
    root.geometry("600x500")

    # 设置样式
    style = tk.ttk.Style()
    style.configure("Treeview", font=('Arial', 11))
    style.configure("Treeview.Heading", font=('Arial', 12, 'bold'))

    app = GradeController(root)
    root.mainloop()


if __name__ == "__main__":
    main()